swayidle: Add support for idlehint#8997
Open
sochotnicky wants to merge 1 commit intonix-community:masterfrom
Open
swayidle: Add support for idlehint#8997sochotnicky wants to merge 1 commit intonix-community:masterfrom
sochotnicky wants to merge 1 commit intonix-community:masterfrom
Conversation
sochotnicky
commented
Mar 29, 2026
aa3617f to
5802fe7
Compare
ambroisie
reviewed
Mar 30, 2026
5802fe7 to
9db4c22
Compare
khaneliman
reviewed
Mar 31, 2026
54b02db to
a32275d
Compare
This adds support for idlehint configuration to notify systemd about idle session. Co-authored-by: Austin Horstman <khaneliman12@gmail.com>
41f1642 to
5af2d6e
Compare
Collaborator
|
Change looks fine, but wondering if it needs a dedicated option or can a user already use |
Author
You know I must have missed that extraArgs - you are right. Using that's an option. I'll leave it up to maintainers to decide - either way is fine. Separate option might be easier to understand/notice given other options but 🤷 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This adds support for idlehint configuration to notify systemd about
idle session.
I've taken a simple path to define a plain new option. I think it makes most
sense since it's the only one that has a timeout but no command. But I can tweak
to make it something like
swayidle.idlehint.timeoutor something similar if that makes more sense. I couldn't come up with a nice way to integrate with timeouts or events.Checklist
Change is backwards compatible.
Code formatted with
nix fmtornix-shell -p treefmt nixfmt deadnix keep-sorted nixf-diagnose --run treefmt.Code tested through
nix run .#tests -- test-allornix-shell --pure tests -A run.all.Test cases updated/added. See example.
Commit messages are formatted like
See CONTRIBUTING for more information and recent commit messages for examples.
If this PR adds a new module
If this PR adds an exciting new feature or contains a breaking change.